package org.club.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.club.common.model.entity.User;

@Mapper
public interface PublicMapper {
     //注册
     Integer registerWithAvatar(User user) ;
     //登录
     User login(@Param("username") String username);
     //查询用户信息
     User select(@Param("username") String username);
     //重置密码
     Integer update(@Param("updatedPasswords") String updatedPasswords,@Param("username") String username);
     //设置用户角色
     void setuser_roles(@Param("users_id") Long id,@Param("roles_id") int i);
     //查询用户角色
     String selectUser_roles(@Param("users_id") Long id);
     //查询该手机号是否已存在
     Integer selectPhone(@Param("phone") String phone);
}
